//
//  DDcacheManager.h
//  hnGovernment
//
//  Created by 张辉男 on 17/3/7.
//  Copyright © 2017年 安仔. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "ZWUserModel.h"
#define cacheManager [DDcacheManager shareInstance]
@interface DDcacheManager : NSObject
// 单利初始化
+ (instancetype)shareInstance;

// 缓存token
- (void)cacheUserToken:(NSString *)token;
- (NSString *)userToken;

// 缓存用户信息
- (void)cacheUserInfo:(NSDictionary *)userInfo;
- (void)cacheUserInfoWithModel:(ZWUserModel *)userModel;
- (ZWUserModel *)getUserModel;

// 清空用户信息
- (void)clearUserInfo;
@end
